<template>
  <div>
    <div id="head">
      <h2>搜索</h2>
     <router-link to="/homepage">取消</router-link> 
    </div>
    <img src="/fenlei/search-input-icon.png" alt="">
    <input type="text" name=""  placeholder="成分新境" >
    <div id="find">
       <h3>搜索发现</h3>
       <ul>
        <li v-for="(v,i) in arr" :key="i"><router-link to="">{{v.text}}</router-link></li> 
       </ul>
    </div>
   
  </div>
</template>

<script>
export default {
data() {
  return {
    arr:[{
      text:"初春星品盛典"
    },{
      text:"换季维稳护肤"
    },{
      text:"温和清洁有一招"
    },{
      text:"隔离防晒新思路"
    },{
      text:"春日清爽元气香"
    },{
      text:"品类周派福利"
    }]
  }
},
}
</script>

<style scoped>
#head{
  width: 90%;
  height: 0.4rem;
  line-height:0.4rem;
  /* background-color: gray; */
  margin:0.1rem auto;
  display: flex;
  justify-content: space-between;
}
h2{
  display: inline-block;
}
input{
  width:90%;
  height: 0.35rem;
  color: black;
  margin-left: 5%;
  border: none;
  background-color: #f2f2f2;
  border-radius: 0.05rem;
  text-indent: 0.4rem;
}
img{
  width:0.2rem;
  height: 0.2rem;
  position: absolute;
  left: 7%;
  top: 0.67rem;
}
#find{
   width: 90%;
  margin:auto;
}
h3{
 
  height: 0.4rem;
  line-height: 0.4rem;
}
li{
  float: left;
  margin-right: 0.15rem;
  margin-bottom: 0.1rem;
}
li:nth-child(3){
  margin-right: 0;
}
li a{
  display: inline-block;
  width: 1rem;
  height: 0.3rem;
  line-height: 0.3rem;
  text-align: center;
  border-radius: 0.05rem;
  background-color: #f2f2f2;
}
</style>